package com.mysoft.gfyx.common.rpc.opptyservice.dto;

import lombok.Data;

import java.util.List;

@Data
public class ContactListResponseDto {
    private boolean success;
    private int error_code;
    private String message;
    private DataList data;

    @Data
    public static class DataList {
        private List<ContactList> contact_list;
        private int contact_total = 0;
        private List<CooperationCompany> cooperation_company;
        private int cooperation_company_total = 0;
    }

    @Data
    public static class ContactList {
        private String pulsarTime = "";
        private String id = "";
        private String data_time = "";
        private String company_name = "";
        private String name = "";
        private String organizing_code = "";
        private String phone_number = "";
        private String position = "";
        private String purchase_owner = "";
        private String source_id = "";
        private int is_supplier = 0;
        private int is_developer = 0;
        private String email = "";
        private int is_recommend = 0;
        private int cooperation_cnt = 0;
        private int cooperation_subscript_cnt = 0;
        private int bidding_cnt = 0;
        private int bidding_subscript_cnt = 0;
        private String last_cooperation_time = "";
        private int view_times = 0;
        private String nameHL = "";
        private String company_nameHL = "";
        private String cooperation_titleHL = "";
        private int _score = 0;
        private List<Cooperation> cooperation;
    }

    @Data
    public static class Cooperation {
        private String title = "";
        private String source_id = "";
        private String cooperation_company_name = "";
        private String cooperation_organizing_code = "";
        private String province = "";
        private String province_code = "";
        private String city = "";
        private String city_code = "";
        private String cooperation_time = "";
        private String category = "";
        private String source_type = "";
        private int weight = 0;
        private String company_name = "";
        private String organizing_code = "";
        private String titleHL = "";
    }

    @Data
    public static class CooperationCompany {
        private String cooperation_company_name = "";
        private String cooperation_organizing_code = "";
        private String last_cooperation_time = "";
        private int cooperation_cnt = 0;
        private int contact_cnt = 0;
        private int doc_count = 0;
        private int _max_score = 0;
        private List<ContactList> contact;
        private String company_type = "";

    }
}
